home *** CD-ROM | disk | FTP | other *** search
/ Clickx 47 / Clickx 47.iso / assets / swf / start.swf / scripts / __Packages / clickx / ui / UIItemList.as < prev    next >
Encoding:
Text File  |  2008-01-01  |  11.6 KB  |  312 lines

  1. var ┬º\x01┬º = 182;
  2. while(true)
  3. {
  4.    if(eval("\x01") != 182)
  5.    {
  6.       if(eval("\x01") == 386)
  7.       {
  8.          set("\x01",eval("\x01") + 603);
  9.          ┬º┬ºpop()[┬º┬ºpop()][┬º┬ºconstant(33)]();
  10.          _loc1_[┬º┬ºconstant(30)]();
  11.          ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  12.          _loc2_[┬º┬ºconstant(34)] = function()
  13.          {
  14.             this[┬º┬ºconstant(35)][┬º┬ºconstant(33)](1);
  15.             this[┬º┬ºconstant(30)]();
  16.          };
  17.          _loc2_[┬º┬ºconstant(36)] = function()
  18.          {
  19.             this[┬º┬ºconstant(8)][┬º┬ºconstant(33)](1);
  20.             delete this[┬º┬ºconstant(8)][┬º┬ºconstant(10)];
  21.             this[┬º┬ºconstant(16)]();
  22.          };
  23.          _loc2_[┬º┬ºconstant(37)] = function()
  24.          {
  25.             this[┬º┬ºconstant(8)][┬º┬ºconstant(18)] = 20;
  26.          };
  27.          ┬º┬ºpush(_loc2_);
  28.          ┬º┬ºpush(┬º┬ºconstant(38));
  29.       }
  30.       else
  31.       {
  32.          if(eval("\x01") == 962)
  33.          {
  34.             set("\x01",eval("\x01") - 323);
  35.             if(┬º┬ºpop())
  36.             {
  37.                set("\x01",eval("\x01") + 113);
  38.             }
  39.             continue;
  40.          }
  41.          if(eval("\x01") != 409)
  42.          {
  43.             if(eval("\x01") == 45)
  44.             {
  45.                set("\x01",eval("\x01") + 682);
  46.                ┬º┬ºpush(┬º┬ºpop() >>> (┬º┬ºpop() instanceof ┬º┬ºpop()));
  47.                break;
  48.             }
  49.             if(eval("\x01") == 694)
  50.             {
  51.                set("\x01",eval("\x01") - 285);
  52.                if(┬º┬ºpop())
  53.                {
  54.                   set("\x01",eval("\x01") + 504);
  55.                }
  56.             }
  57.             else if(eval("\x01") == 727)
  58.             {
  59.                set("\x01",eval("\x01") + 235);
  60.                ┬º┬ºpush(true);
  61.             }
  62.             else if(eval("\x01") == 184)
  63.             {
  64.                set("\x01",eval("\x01") - 134);
  65.                if(┬º┬ºpop())
  66.                {
  67.                   set("\x01",eval("\x01") + 920);
  68.                }
  69.             }
  70.             else if(eval("\x01") == 12)
  71.             {
  72.                set("\x01",eval("\x01") + 33);
  73.                if(┬º┬ºpop())
  74.                {
  75.                   set("\x01",eval("\x01") + 682);
  76.                }
  77.             }
  78.             else if(eval("\x01") == 53)
  79.             {
  80.                set("\x01",eval("\x01") + 641);
  81.                ┬º┬ºpush(true);
  82.             }
  83.             else if(eval("\x01") == 970)
  84.             {
  85.                set("\x01",eval("\x01") - 958);
  86.                ┬º┬ºpush(true);
  87.             }
  88.             else
  89.             {
  90.                if(eval("\x01") == 50)
  91.                {
  92.                   set("\x01",eval("\x01") + 920);
  93.                   ┬º┬ºpush(┬º┬ºpop()());
  94.                   break;
  95.                }
  96.                if(eval("\x01") == 929)
  97.                {
  98.                   set("\x01",eval("\x01") - 876);
  99.                   break;
  100.                }
  101.                if(eval("\x01") == 639)
  102.                {
  103.                   set("\x01",eval("\x01") + 113);
  104.                   prevFrame();
  105.                   break;
  106.                }
  107.                if(eval("\x01") == 752)
  108.                {
  109.                   set("\x01",eval("\x01") - 435);
  110.                   if(!_global.clickx)
  111.                   {
  112.                      _global.clickx = new Object();
  113.                   }
  114.                   ┬º┬ºpop();
  115.                   if(!_global.clickx.ui)
  116.                   {
  117.                      _global.clickx.ui = new Object();
  118.                   }
  119.                   ┬º┬ºpop();
  120.                   if(!_global.clickx.ui.UIItemList)
  121.                   {
  122.                      clickx.ui.UIItemList extends MovieClip;
  123.                      var _loc2_ = clickx.ui.UIItemList = function()
  124.                      {
  125.                         super();
  126.                      }.prototype;
  127.                      _loc2_.renderItem = function(itemList, itemNumber, templateId)
  128.                      {
  129.                         this.attachMovie(templateId,"item" + itemNumber + "_mc",this.getNextHighestDepth());
  130.                         this["item" + itemNumber + "_mc"]._y = itemNumber * 20;
  131.                         this["item" + itemNumber + "_mc"].text_txt.text = itemList[itemNumber].text;
  132.                         this["item" + itemNumber + "_mc"]._id = itemList[itemNumber].id;
  133.                         this["item" + itemNumber + "_mc"].onPress = function()
  134.                         {
  135.                            this._parent._parent.selectItem(this._id);
  136.                         };
  137.                         clickx.util.ButtonUtil.makeFrame_R_O_Effect(this["item" + itemNumber + "_mc"],5);
  138.                         if(itemNumber < itemList.length - 1)
  139.                         {
  140.                            _global.setTimeout(this,"renderItem",40,itemList,itemNumber + 1,templateId);
  141.                         }
  142.                      };
  143.                      _loc2_.arrangeItems = function()
  144.                      {
  145.                         var _loc3_ = this.currentScroll * 20 * -1;
  146.                         var _loc2_ = 0;
  147.                         while(_loc2_ < this.numItems)
  148.                         {
  149.                            this["item" + _loc2_ + "_mc"]._y = _loc3_;
  150.                            _loc3_ += 20;
  151.                            _loc2_ = _loc2_ + 1;
  152.                         }
  153.                      };
  154.                      _loc2_.getScrollPos = function()
  155.                      {
  156.                         return this.currentScroll;
  157.                      };
  158.                      _loc2_.getMaxScroll = function()
  159.                      {
  160.                         return this.maxScroll;
  161.                      };
  162.                      _loc2_.clearList = function()
  163.                      {
  164.                         var _loc2_ = 0;
  165.                         while(_loc2_ < this.numItems)
  166.                         {
  167.                            if(this["item" + _loc2_ + "_mc"] != undefined)
  168.                            {
  169.                               this["item" + _loc2_ + "_mc"].removeMovieClip();
  170.                            }
  171.                            _loc2_ = _loc2_ + 1;
  172.                         }
  173.                      };
  174.                      _loc2_.fillList = function(itemList, delayBetweenItems, templateId)
  175.                      {
  176.                         this.clearList();
  177.                         this.numItems = itemList.length;
  178.                         if(this.numItems > 15)
  179.                         {
  180.                            this.maxScroll = this.numItems - 15;
  181.                         }
  182.                         else
  183.                         {
  184.                            this.maxScroll = 0;
  185.                         }
  186.                         this.currentScroll = 0;
  187.                         if(delayBetweenItems)
  188.                         {
  189.                            if(itemList.length > 0)
  190.                            {
  191.                               this.renderItem(itemList,0,templateId);
  192.                            }
  193.                         }
  194.                         else
  195.                         {
  196.                            var _loc2_ = 0;
  197.                            while(_loc2_ < itemList.length)
  198.                            {
  199.                               this.attachMovie(templateId,"item" + _loc2_ + "_mc",this.getNextHighestDepth());
  200.                               this["item" + _loc2_ + "_mc"]._y = _loc2_ * 20;
  201.                               var _loc3_ = itemList[_loc2_].text;
  202.                               var _loc6_ = undefined;
  203.                               _loc6_ = this["item" + _loc2_ + "_mc"].text_txt.getNewTextFormat();
  204.                               var _loc4_ = _loc6_.getTextExtent(_loc3_);
  205.                               var _loc5_ = false;
  206.                               while(_loc4_.textFieldWidth > 182)
  207.                               {
  208.                                  _loc3_ = _loc3_.substr(0,_loc3_.length - 1);
  209.                                  _loc4_ = _loc6_.getTextExtent(_loc3_ + "...");
  210.                                  _loc5_ = true;
  211.                               }
  212.                               if(_loc5_)
  213.                               {
  214.                                  _loc3_ += "...";
  215.                               }
  216.                               this["item" + _loc2_ + "_mc"].text_txt.text = _loc3_;
  217.                               this["item" + _loc2_ + "_mc"]._id = itemList[_loc2_].id;
  218.                               this["item" + _loc2_ + "_mc"].onPress = function()
  219.                               {
  220.                                  this._parent._parent.selectItem(this._id);
  221.                               };
  222.                               clickx.util.ButtonUtil.makeFrame_R_O_Effect(this["item" + _loc2_ + "_mc"],5);
  223.                               _loc2_ = _loc2_ + 1;
  224.                            }
  225.                         }
  226.                      };
  227.                      _loc2_.scrollList = function(val)
  228.                      {
  229.                         if(this.currentScroll + val <= this.maxScroll && this.currentScroll + val >= 0)
  230.                         {
  231.                            this.currentScroll += val;
  232.                            this.arrangeItems();
  233.                         }
  234.                      };
  235.                      _loc2_.setScrollPos = function(val)
  236.                      {
  237.                         this.currentScroll = val;
  238.                         this.arrangeItems();
  239.                      };
  240.                      _loc2_.numItems = 0;
  241.                      _loc2_.maxScroll = 0;
  242.                      _loc2_.currentScroll = 0;
  243.                      ┬º┬ºpush(ASSetPropFlags(clickx.ui.UIItemList.prototype,null,1));
  244.                   }
  245.                   ┬º┬ºpop();
  246.                   break;
  247.                }
  248.                if(eval("\x01") == 989)
  249.                {
  250.                   set("\x01",eval("\x01") - 550);
  251.                   ┬º┬ºpush(true);
  252.                }
  253.                else if(eval("\x01") == 913)
  254.                {
  255.                   set("\x01",eval("\x01") - 729);
  256.                   ┬º┬ºpush(true);
  257.                }
  258.                else if(eval("\x01") == 567)
  259.                {
  260.                   set("\x01",eval("\x01") + 362);
  261.                   if(┬º┬ºpop())
  262.                   {
  263.                      set("\x01",eval("\x01") - 876);
  264.                   }
  265.                }
  266.                else if(eval("\x01") == 882)
  267.                {
  268.                   set("\x01",eval("\x01") - 315);
  269.                   ┬º┬ºpush(true);
  270.                }
  271.                else
  272.                {
  273.                   if(eval("\x01") == 99)
  274.                   {
  275.                      set("\x01",eval("\x01") + 783);
  276.                      break;
  277.                   }
  278.                   if(eval("\x01") == 439)
  279.                   {
  280.                      set("\x01",eval("\x01") - 340);
  281.                      if(┬º┬ºpop())
  282.                      {
  283.                         set("\x01",eval("\x01") + 783);
  284.                      }
  285.                   }
  286.                   else
  287.                   {
  288.                      if(eval("\x01") != 219)
  289.                      {
  290.                         break;
  291.                      }
  292.                      set("\x01",eval("\x01") + 167);
  293.                      if(┬º┬ºpop())
  294.                      {
  295.                         set("\x01",eval("\x01") + 603);
  296.                      }
  297.                   }
  298.                }
  299.             }
  300.             continue;
  301.          }
  302.          set("\x01",eval("\x01") + 504);
  303.          ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop()[┬º┬ºpop() < ┬º┬ºpop()]();
  304.       }
  305.       ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  306.       ┬º┬ºconstant(45)(eval(┬º┬ºconstant(1))[┬º┬ºconstant(3)][┬º┬ºconstant(4)][┬º┬ºconstant(6)],null,1);
  307.       break;
  308.    }
  309.    set("\x01",eval("\x01") + 37);
  310.    ┬º┬ºpush(true);
  311. }
  312.